﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using PTiRouZ.Net.SilverLight.Api.HelloTipi;
using System.Collections.ObjectModel;
using PTiRouZ.Net.SilverLight.Api;
using Seesmic.Sdp.Extensibility;
using System.ComponentModel;
using Seesmic.Sdp.Utils;

namespace Seesmic.HelloTipi
{
    public class FavouritePhotosControlModel : PhotosControlModel<favourite>
    {

        public FavouritePhotosControlModel(HelloTipiAccount Account) : base(Account)
        {
            this.family = false;

            this.api.FavouritePhotosCompleted += new FavouritePhotosEventHandler(api_FavouritePhotosCompleted);
            this.api.FavouritePhoto();
        }

        void api_FavouritePhotosCompleted(object sender, FavouritePhotosEventArgs e)
        {
            PhotosCollection = e.result as ObservableCollection<favourite>;
        }        
    }
}
